from django.contrib.auth.models import AbstractUser
from django.db import models

class Userss(AbstractUser):
    """用户模型类"""
    mobile = models.CharField(max_length=11, unique=True, verbose_name='手机号')
    avatar = models.ImageField(upload_to="avatar", null=True, blank=True, verbose_name="用户头像")
    wxchat = models.CharField(max_length=64, default=True, blank=True, verbose_name="微信号")
    credit = models.IntegerField(default=0, blank=True, verbose_name="贝壳")
    class Meta:
        # app_label = 'users'  # 添加您的应用程序名称
        db_table = 'ly_users'
        verbose_name = '用户'
        verbose_name_plural = verbose_name
